ARG IMAGE_REPO="amd64"
ARG IMAGE_NAME="openeuler"
ARG IMAGE_VERSION="24.03.10.241126"
FROM ${IMAGE_REPO}/${IMAGE_NAME}:${IMAGE_VERSION}
LABEL name="openjdk" description="openjdk base openeuler linux simplified chinese image" version="21.0.2.241126"
RUN dnf install java-21-openjdk java-21-openjdk-devel -y
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH=${JAVA_HOME}/bin:$PATH
ENV CLASSPATH=.;
CMD ["/bin/bash"]

# ======================================================================================================================
# 镜像构建指令示例，其中YYMMDD替换为当前日期，如：240101
# docker build --no-cache --progress=plain -t amd64/openjdk:21.0.2.YYMMDD ./
# docker build --no-cache --progress=plain -t amd64/openjdk:21.0.2.241126 ./

# ======================================================================================================================
# 镜像发布指令示例，其中YYMMDD替换为当前日期，如：240101
# docker tag amd64/openjdk:21.0.2.YYMMDD 47.102.198.82:9980/amd64/openjdk:21.0.2.YYMMDD && docker push 47.102.198.82:9980/amd64/openjdk:21.0.2.YYMMDD
# docker tag amd64/openjdk:21.0.2.241126 47.102.198.82:9980/amd64/openjdk:21.0.2.241126 && docker push 47.102.198.82:9980/amd64/openjdk:21.0.2.241126
